AI-based medical device for aided diagnosis in dermatological conditions